package cn.sciento.starter.social.wechat.connection;

import cn.sciento.starter.social.core.common.connect.SocialServiceProvider;
import cn.sciento.starter.social.core.common.connect.SocialTemplate;
import cn.sciento.starter.social.core.provider.Provider;
import cn.sciento.starter.social.wechat.api.DefaultWechatApi;
import cn.sciento.starter.social.wechat.api.WechatApi;

public class WechatServiceProvider extends SocialServiceProvider {
  private Provider provider;
  
  public WechatServiceProvider(Provider provider, SocialTemplate template) {
    super(provider, template);
    this.provider = provider;
  }
  
  public WechatApi getSocialApi(String accessToken) {
    return (WechatApi)new DefaultWechatApi(accessToken, this.provider);
  }
}
